.class public Lcom/htc/android/footprints/activity/ListModeNewActivity;
.super Lcom/htc/widget/TabSwitchActivity;
.source "ListModeNewActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;
    }
.end annotation


# static fields
.field private static final CONTEXT_MENU:I = 0x7

.field private static final DELETE_FOOTPRINT_DIALOG:I = 0x6

.field private static final FILEPICKER_REQUEST_CODE:I = 0xa

.field private static final FILE_PICKER_NOT_FOUND_DIALOG:I = 0x4

.field private static final FIRST_LAUNCH_DIALOG:I = 0x0

.field private static final HEADER_VIEW_COUNT:I = 0x1

.field public static final IMPORT_CANCEL:I = 0x3

.field public static final IMPORT_NO:I = 0x2

.field public static final IMPORT_YES:I = 0x1

.field private static final MENU_CREATE_NEW_FOOTPRINT:I = 0x2

.field private static final MENU_DELETE:I = 0x5

.field private static final MENU_EXPORT:I = 0x3

.field private static final MENU_IMPORT:I = 0x4

.field private static final MENU_SEARCH:I = 0x7

.field private static final MENU_SETTING:I = 0x6

.field private static final MENU_SHOW_ON_MAP:I = 0x0

.field private static final MENU_SORT:I = 0x1

.field private static final NO_INTERNAL_STORAGE_DIALOG:I = 0x1

.field private static final PHOTO_PICKER_NOT_FOUND_DIALOG:I = 0x5

.field public static final PICK_FOOTPRINT:Ljava/lang/String; = "pick_footprint"

.field private static final PROGRESS_DIALOG:I = 0x2

.field private static final REQUEST_CHOOSE_PHOTO:I = 0x2

.field public static final REQUEST_EDIT:I = 0x190

.field public static final REQUEST_IMPORT_DIALOG_CODE:I = 0x12c

.field private static final SERVICE_BINDED:I = 0x2

.field private static final SERVICE_BINDING:I = 0x1

.field private static final SERVICE_UNBIND:I = 0x0

.field private static final SORT_DATE:I = 0x1

.field private static final SORT_DIALOG:I = 0x3

.field private static final SORT_NAME:I = 0x0

.field private static final TAG:Ljava/lang/String; = "ListModeActivity"


# instance fields
.field private curCategory:Lcom/htc/android/footprints/vo/Category;

.field private cursorMayBeDirty:Z

.field private dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

.field public isApplyAll:Z

.field public isCancelImport:Z

.field public isOverwrite:I

.field public isWaitDialg:Z

.field private listView:Lcom/htc/widget/HtcListView;

.field private listmode:Landroid/view/View;

.field public mAdapter:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;

.field private mAddNewFootprintView:Landroid/view/View;

.field private mBindState:I

.field private mConnection:Landroid/content/ServiceConnection;

.field private mFilter:Landroid/widget/Filter;

.field private mIsPicker:Z

.field private mIsPreloadComplete:Z

.field private mPanelHost:Lcom/htc/widget/TabSwitchHost;

.field private mSearchInput:Landroid/widget/TextView;

.field private mSearchView:Landroid/view/View;

.field mService:Lcom/htc/android/footprints/ILocationAgentService;

.field private mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

.field private mTitleView:Landroid/widget/TextView;

.field private preloadRunnable:Lcom/htc/android/footprints/utils/PreloadDataRunnable;

.field private selectedFootprint:Lcom/htc/android/footprints/vo/Footprint;

.field private sortBy:Ljava/lang/String;

.field private sortMode:I

.field private sourceFile:Ljava/io/File;


# direct methods
.method public constructor <init>()V
    .locals 3

    .prologue
    const/4 v2, 0x1

    const/4 v1, 0x0

    .line 83
    invoke-direct {p0}, Lcom/htc/widget/TabSwitchActivity;-><init>()V

    .line 90
    const-string v0, "create_time desc"

    iput-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortBy:Ljava/lang/String;

    .line 93
    iput v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortMode:I

    .line 100
    iput-boolean v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mIsPicker:Z

    .line 107
    iput-boolean v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->cursorMayBeDirty:Z

    .line 110
    iput-boolean v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mIsPreloadComplete:Z

    .line 823
    iput-boolean v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isApplyAll:Z

    .line 824
    iput-boolean v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isWaitDialg:Z

    .line 825
    iput-boolean v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isCancelImport:Z

    .line 826
    iput v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isOverwrite:I

    .line 1431
    iput v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mBindState:I

    .line 1456
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    .line 1457
    new-instance v0, Lcom/htc/android/footprints/activity/ListModeNewActivity$13;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity$13;-><init>(Lcom/htc/android/footprints/activity/ListModeNewActivity;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mConnection:Landroid/content/ServiceConnection;

    return-void
.end method

.method static synthetic access$000(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Landroid/view/View;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->listmode:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$002(Lcom/htc/android/footprints/activity/ListModeNewActivity;Landroid/view/View;)Landroid/view/View;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 83
    iput-object p1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->listmode:Landroid/view/View;

    return-object p1
.end method

.method static synthetic access$100(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Lcom/htc/widget/HtcListView;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;

    return-object v0
.end method

.method static synthetic access$102(Lcom/htc/android/footprints/activity/ListModeNewActivity;Lcom/htc/widget/HtcListView;)Lcom/htc/widget/HtcListView;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 83
    iput-object p1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;

    return-object p1
.end method

.method static synthetic access$1100(Lcom/htc/android/footprints/activity/ListModeNewActivity;Z)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 83
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->showSearch(Z)V

    return-void
.end method

.method static synthetic access$1200(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-boolean v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mIsPreloadComplete:Z

    return v0
.end method

.method static synthetic access$1202(Lcom/htc/android/footprints/activity/ListModeNewActivity;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 83
    iput-boolean p1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mIsPreloadComplete:Z

    return p1
.end method

.method static synthetic access$1300(Lcom/htc/android/footprints/activity/ListModeNewActivity;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortMode:I

    return v0
.end method

.method static synthetic access$1302(Lcom/htc/android/footprints/activity/ListModeNewActivity;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 83
    iput p1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortMode:I

    return p1
.end method

.method static synthetic access$1400(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Lcom/htc/android/footprints/vo/Footprint;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->selectedFootprint:Lcom/htc/android/footprints/vo/Footprint;

    return-object v0
.end method

.method static synthetic access$1402(Lcom/htc/android/footprints/activity/ListModeNewActivity;Lcom/htc/android/footprints/vo/Footprint;)Lcom/htc/android/footprints/vo/Footprint;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 83
    iput-object p1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->selectedFootprint:Lcom/htc/android/footprints/vo/Footprint;

    return-object p1
.end method

.method static synthetic access$1502(Lcom/htc/android/footprints/activity/ListModeNewActivity;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 83
    iput-boolean p1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->cursorMayBeDirty:Z

    return p1
.end method

.method static synthetic access$1600(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Ljava/io/File;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->sourceFile:Ljava/io/File;

    return-object v0
.end method

.method static synthetic access$1700(Lcom/htc/android/footprints/activity/ListModeNewActivity;Ljava/io/File;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 83
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->advancedImportKMZ(Ljava/io/File;)V

    return-void
.end method

.method static synthetic access$1800(Lcom/htc/android/footprints/activity/ListModeNewActivity;Ljava/io/File;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 83
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->advancedImportKML(Ljava/io/File;)V

    return-void
.end method

.method static synthetic access$1900(Lcom/htc/android/footprints/activity/ListModeNewActivity;Ljava/io/File;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 83
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->doPickPhotoAction(Ljava/io/File;)V

    return-void
.end method

.method static synthetic access$200(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-boolean v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mIsPicker:Z

    return v0
.end method

.method static synthetic access$2102(Lcom/htc/android/footprints/activity/ListModeNewActivity;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 83
    iput p1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mBindState:I

    return p1
.end method

.method static synthetic access$300(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Landroid/view/View;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAddNewFootprintView:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$302(Lcom/htc/android/footprints/activity/ListModeNewActivity;Landroid/view/View;)Landroid/view/View;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 83
    iput-object p1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAddNewFootprintView:Landroid/view/View;

    return-object p1
.end method

.method static synthetic access$400(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortBy:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$402(Lcom/htc/android/footprints/activity/ListModeNewActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 83
    iput-object p1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortBy:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$500(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Lcom/htc/android/footprints/provider/FootprintManager;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    return-object v0
.end method

.method static synthetic access$600(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Landroid/widget/Filter;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mFilter:Landroid/widget/Filter;

    return-object v0
.end method

.method static synthetic access$602(Lcom/htc/android/footprints/activity/ListModeNewActivity;Landroid/widget/Filter;)Landroid/widget/Filter;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 83
    iput-object p1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mFilter:Landroid/widget/Filter;

    return-object p1
.end method

.method static synthetic access$700(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Landroid/widget/TextView;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mTitleView:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$800(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Lcom/htc/android/footprints/vo/Category;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    return-object v0
.end method

.method static synthetic access$900(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Landroid/widget/TextView;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mSearchInput:Landroid/widget/TextView;

    return-object v0
.end method

.method private advancedImportKML(Ljava/io/File;)V
    .locals 13
    .parameter "file"

    .prologue
    const/4 v9, 0x0

    const/4 v12, 0x1

    const-string v11, "ListModeActivity"

    .line 892
    iput-boolean v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isApplyAll:Z

    .line 893
    iput-boolean v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isCancelImport:Z

    .line 894
    iput v12, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isOverwrite:I

    .line 896
    invoke-static {v12}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->hasStorage(Z)Z

    move-result v9

    if-eqz v9, :cond_1

    .line 897
    const/4 v3, 0x0

    .line 899
    .local v3, fi:Ljava/io/FileInputStream;
    :try_start_0
    new-instance v4, Ljava/io/FileInputStream;

    invoke-direct {v4, p1}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_b
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_0 .. :try_end_0} :catch_a
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_9

    .line 900
    .end local v3           #fi:Ljava/io/FileInputStream;
    .local v4, fi:Ljava/io/FileInputStream;
    :try_start_1
    new-instance v9, Ljava/io/InputStreamReader;

    invoke-direct {v9, v4}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V

    invoke-static {v9}, Lcom/htc/android/footprints/kml/KMLUtil;->parseKML(Ljava/io/Reader;)[Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v8

    .line 902
    .local v8, result:[Lcom/htc/android/footprints/vo/Footprint;
    move-object v0, v8

    .local v0, arr$:[Lcom/htc/android/footprints/vo/Footprint;
    array-length v7, v0

    .local v7, len$:I
    const/4 v5, 0x0

    .local v5, i$:I
    :goto_0
    if-ge v5, v7, :cond_0

    aget-object v2, v0, v5

    .line 903
    .local v2, f:Lcom/htc/android/footprints/vo/Footprint;
    const/4 v9, 0x0

    iput-object v9, v2, Lcom/htc/android/footprints/vo/Footprint;->mAudioPath:Ljava/lang/String;

    .line 904
    const/4 v9, 0x0

    iput-object v9, v2, Lcom/htc/android/footprints/vo/Footprint;->mAudioFileName:Ljava/lang/String;

    .line 905
    const/4 v9, 0x0

    iput-object v9, v2, Lcom/htc/android/footprints/vo/Footprint;->mPicFileName:Ljava/lang/String;

    .line 906
    const/4 v9, 0x0

    iput-object v9, v2, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    .line 908
    const/4 v9, 0x1

    iput-boolean v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isWaitDialg:Z

    .line 909
    iget-boolean v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isCancelImport:Z
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1
    .catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_1 .. :try_end_1} :catch_3
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_5

    if-eqz v9, :cond_2

    .line 948
    .end local v2           #f:Lcom/htc/android/footprints/vo/Footprint;
    :cond_0
    :try_start_2
    invoke-virtual {v4}, Ljava/io/FileInputStream;->close()V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_7

    .line 954
    .end local v0           #arr$:[Lcom/htc/android/footprints/vo/Footprint;
    .end local v4           #fi:Ljava/io/FileInputStream;
    .end local v5           #i$:I
    .end local v7           #len$:I
    .end local v8           #result:[Lcom/htc/android/footprints/vo/Footprint;
    :cond_1
    :goto_1
    return-void

    .line 911
    .restart local v0       #arr$:[Lcom/htc/android/footprints/vo/Footprint;
    .restart local v2       #f:Lcom/htc/android/footprints/vo/Footprint;
    .restart local v4       #fi:Ljava/io/FileInputStream;
    .restart local v5       #i$:I
    .restart local v7       #len$:I
    .restart local v8       #result:[Lcom/htc/android/footprints/vo/Footprint;
    :cond_2
    :try_start_3
    iget-object v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    invoke-virtual {v9, v2}, Lcom/htc/android/footprints/provider/FootprintManager;->isExistFootprint(Lcom/htc/android/footprints/vo/Footprint;)Z

    move-result v9

    if-nez v9, :cond_4

    .line 912
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v9

    invoke-static {v9}, Lcom/htc/android/footprints/provider/FootprintManager;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v9

    invoke-virtual {v9, v2}, Lcom/htc/android/footprints/provider/FootprintManager;->addFootprint(Lcom/htc/android/footprints/vo/Footprint;)I

    .line 902
    :cond_3
    :goto_2
    add-int/lit8 v5, v5, 0x1

    goto :goto_0

    .line 915
    :cond_4
    iget-boolean v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isApplyAll:Z

    if-eqz v9, :cond_5

    .line 916
    iget v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isOverwrite:I

    if-ne v9, v12, :cond_3

    .line 917
    iget-object v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    invoke-virtual {v9, v2}, Lcom/htc/android/footprints/provider/FootprintManager;->getExistFootprintID(Lcom/htc/android/footprints/vo/Footprint;)J

    move-result-wide v9

    long-to-int v9, v9

    invoke-virtual {v2, v9}, Lcom/htc/android/footprints/vo/Footprint;->setID(I)V

    .line 918
    iget-object v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    invoke-virtual {v9, v2}, Lcom/htc/android/footprints/provider/FootprintManager;->modifyFootprint(Lcom/htc/android/footprints/vo/Footprint;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1
    .catch Ljava/io/FileNotFoundException; {:try_start_3 .. :try_end_3} :catch_0
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_3 .. :try_end_3} :catch_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_5

    goto :goto_2

    .line 940
    .end local v0           #arr$:[Lcom/htc/android/footprints/vo/Footprint;
    .end local v2           #f:Lcom/htc/android/footprints/vo/Footprint;
    .end local v5           #i$:I
    .end local v7           #len$:I
    .end local v8           #result:[Lcom/htc/android/footprints/vo/Footprint;
    :catch_0
    move-exception v9

    move-object v1, v9

    move-object v3, v4

    .line 941
    .end local v4           #fi:Ljava/io/FileInputStream;
    .local v1, e:Ljava/io/FileNotFoundException;
    .restart local v3       #fi:Ljava/io/FileInputStream;
    :goto_3
    :try_start_4
    const-string v9, "ListModeActivity"

    invoke-virtual {v1}, Ljava/io/FileNotFoundException;->getMessage()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    .line 948
    :try_start_5
    invoke-virtual {v3}, Ljava/io/FileInputStream;->close()V
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_1

    goto :goto_1

    .line 949
    :catch_1
    move-exception v1

    .line 950
    .local v1, e:Ljava/io/IOException;
    const-string v9, "ListModeActivity"

    invoke-virtual {v1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v9

    invoke-static {v11, v9, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_1

    .line 922
    .end local v1           #e:Ljava/io/IOException;
    .end local v3           #fi:Ljava/io/FileInputStream;
    .restart local v0       #arr$:[Lcom/htc/android/footprints/vo/Footprint;
    .restart local v2       #f:Lcom/htc/android/footprints/vo/Footprint;
    .restart local v4       #fi:Ljava/io/FileInputStream;
    .restart local v5       #i$:I
    .restart local v7       #len$:I
    .restart local v8       #result:[Lcom/htc/android/footprints/vo/Footprint;
    :cond_5
    :try_start_6
    new-instance v6, Landroid/content/Intent;

    const-string v9, "ImportDialog"

    invoke-direct {v6, v9}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 923
    .local v6, intent_import_dialog:Landroid/content/Intent;
    const-string v9, "import_data"

    invoke-virtual {v6, v9, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 924
    const/16 v9, 0x12c

    invoke-virtual {p0, v6, v9}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->startActivityForResult(Landroid/content/Intent;I)V

    .line 926
    :goto_4
    iget-boolean v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isWaitDialg:Z
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_1
    .catch Ljava/io/FileNotFoundException; {:try_start_6 .. :try_end_6} :catch_0
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_6 .. :try_end_6} :catch_3
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_5

    if-eqz v9, :cond_6

    .line 928
    const-wide/16 v9, 0x12c

    :try_start_7
    invoke-static {v9, v10}, Ljava/lang/Thread;->sleep(J)V
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_1
    .catch Ljava/lang/InterruptedException; {:try_start_7 .. :try_end_7} :catch_2
    .catch Ljava/io/FileNotFoundException; {:try_start_7 .. :try_end_7} :catch_0
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_7 .. :try_end_7} :catch_3
    .catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_5

    goto :goto_4

    .line 929
    :catch_2
    move-exception v1

    .line 930
    .local v1, e:Ljava/lang/InterruptedException;
    :try_start_8
    invoke-virtual {v1}, Ljava/lang/InterruptedException;->printStackTrace()V
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_1
    .catch Ljava/io/FileNotFoundException; {:try_start_8 .. :try_end_8} :catch_0
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_8 .. :try_end_8} :catch_3
    .catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_5

    goto :goto_4

    .line 942
    .end local v0           #arr$:[Lcom/htc/android/footprints/vo/Footprint;
    .end local v1           #e:Ljava/lang/InterruptedException;
    .end local v2           #f:Lcom/htc/android/footprints/vo/Footprint;
    .end local v5           #i$:I
    .end local v6           #intent_import_dialog:Landroid/content/Intent;
    .end local v7           #len$:I
    .end local v8           #result:[Lcom/htc/android/footprints/vo/Footprint;
    :catch_3
    move-exception v9

    move-object v1, v9

    move-object v3, v4

    .line 943
    .end local v4           #fi:Ljava/io/FileInputStream;
    .local v1, e:Lorg/xmlpull/v1/XmlPullParserException;
    .restart local v3       #fi:Ljava/io/FileInputStream;
    :goto_5
    :try_start_9
    const-string v9, "ListModeActivity"

    invoke-virtual {v1}, Lorg/xmlpull/v1/XmlPullParserException;->getMessage()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
    :try_end_9
    .catchall {:try_start_9 .. :try_end_9} :catchall_0

    .line 948
    :try_start_a
    invoke-virtual {v3}, Ljava/io/FileInputStream;->close()V
    :try_end_a
    .catch Ljava/io/IOException; {:try_start_a .. :try_end_a} :catch_4

    goto :goto_1

    .line 949
    :catch_4
    move-exception v1

    .line 950
    .local v1, e:Ljava/io/IOException;
    const-string v9, "ListModeActivity"

    invoke-virtual {v1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v9

    invoke-static {v11, v9, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto/16 :goto_1

    .line 933
    .end local v1           #e:Ljava/io/IOException;
    .end local v3           #fi:Ljava/io/FileInputStream;
    .restart local v0       #arr$:[Lcom/htc/android/footprints/vo/Footprint;
    .restart local v2       #f:Lcom/htc/android/footprints/vo/Footprint;
    .restart local v4       #fi:Ljava/io/FileInputStream;
    .restart local v5       #i$:I
    .restart local v6       #intent_import_dialog:Landroid/content/Intent;
    .restart local v7       #len$:I
    .restart local v8       #result:[Lcom/htc/android/footprints/vo/Footprint;
    :cond_6
    :try_start_b
    iget-boolean v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isCancelImport:Z

    if-nez v9, :cond_0

    .line 934
    iget v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isOverwrite:I

    if-ne v9, v12, :cond_3

    .line 935
    iget-object v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    invoke-virtual {v9, v2}, Lcom/htc/android/footprints/provider/FootprintManager;->getExistFootprintID(Lcom/htc/android/footprints/vo/Footprint;)J

    move-result-wide v9

    long-to-int v9, v9

    invoke-virtual {v2, v9}, Lcom/htc/android/footprints/vo/Footprint;->setID(I)V

    .line 936
    iget-object v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    invoke-virtual {v9, v2}, Lcom/htc/android/footprints/provider/FootprintManager;->modifyFootprint(Lcom/htc/android/footprints/vo/Footprint;)V
    :try_end_b
    .catchall {:try_start_b .. :try_end_b} :catchall_1
    .catch Ljava/io/FileNotFoundException; {:try_start_b .. :try_end_b} :catch_0
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_b .. :try_end_b} :catch_3
    .catch Ljava/io/IOException; {:try_start_b .. :try_end_b} :catch_5

    goto/16 :goto_2

    .line 944
    .end local v0           #arr$:[Lcom/htc/android/footprints/vo/Footprint;
    .end local v2           #f:Lcom/htc/android/footprints/vo/Footprint;
    .end local v5           #i$:I
    .end local v6           #intent_import_dialog:Landroid/content/Intent;
    .end local v7           #len$:I
    .end local v8           #result:[Lcom/htc/android/footprints/vo/Footprint;
    :catch_5
    move-exception v9

    move-object v1, v9

    move-object v3, v4

    .line 945
    .end local v4           #fi:Ljava/io/FileInputStream;
    .restart local v1       #e:Ljava/io/IOException;
    .restart local v3       #fi:Ljava/io/FileInputStream;
    :goto_6
    :try_start_c
    const-string v9, "ListModeActivity"

    invoke-virtual {v1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
    :try_end_c
    .catchall {:try_start_c .. :try_end_c} :catchall_0

    .line 948
    :try_start_d
    invoke-virtual {v3}, Ljava/io/FileInputStream;->close()V
    :try_end_d
    .catch Ljava/io/IOException; {:try_start_d .. :try_end_d} :catch_6

    goto/16 :goto_1

    .line 949
    :catch_6
    move-exception v1

    .line 950
    const-string v9, "ListModeActivity"

    invoke-virtual {v1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v9

    invoke-static {v11, v9, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto/16 :goto_1

    .line 949
    .end local v1           #e:Ljava/io/IOException;
    .end local v3           #fi:Ljava/io/FileInputStream;
    .restart local v0       #arr$:[Lcom/htc/android/footprints/vo/Footprint;
    .restart local v4       #fi:Ljava/io/FileInputStream;
    .restart local v5       #i$:I
    .restart local v7       #len$:I
    .restart local v8       #result:[Lcom/htc/android/footprints/vo/Footprint;
    :catch_7
    move-exception v1

    .line 950
    .restart local v1       #e:Ljava/io/IOException;
    const-string v9, "ListModeActivity"

    invoke-virtual {v1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v9

    invoke-static {v11, v9, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto/16 :goto_1

    .line 947
    .end local v0           #arr$:[Lcom/htc/android/footprints/vo/Footprint;
    .end local v1           #e:Ljava/io/IOException;
    .end local v4           #fi:Ljava/io/FileInputStream;
    .end local v5           #i$:I
    .end local v7           #len$:I
    .end local v8           #result:[Lcom/htc/android/footprints/vo/Footprint;
    .restart local v3       #fi:Ljava/io/FileInputStream;
    :catchall_0
    move-exception v9

    .line 948
    :goto_7
    :try_start_e
    invoke-virtual {v3}, Ljava/io/FileInputStream;->close()V
    :try_end_e
    .catch Ljava/io/IOException; {:try_start_e .. :try_end_e} :catch_8

    .line 951
    :goto_8
    throw v9

    .line 949
    :catch_8
    move-exception v1

    .line 950
    .restart local v1       #e:Ljava/io/IOException;
    const-string v10, "ListModeActivity"

    invoke-virtual {v1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v10

    invoke-static {v11, v10, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_8

    .line 947
    .end local v1           #e:Ljava/io/IOException;
    .end local v3           #fi:Ljava/io/FileInputStream;
    .restart local v4       #fi:Ljava/io/FileInputStream;
    :catchall_1
    move-exception v9

    move-object v3, v4

    .end local v4           #fi:Ljava/io/FileInputStream;
    .restart local v3       #fi:Ljava/io/FileInputStream;
    goto :goto_7

    .line 944
    :catch_9
    move-exception v9

    move-object v1, v9

    goto :goto_6

    .line 942
    :catch_a
    move-exception v9

    move-object v1, v9

    goto :goto_5

    .line 940
    :catch_b
    move-exception v9

    move-object v1, v9

    goto/16 :goto_3
.end method

.method private advancedImportKMZ(Ljava/io/File;)V
    .locals 13
    .parameter "file"

    .prologue
    const/4 v9, 0x0

    const/4 v11, 0x1

    const-string v12, "ListModeActivity"

    .line 832
    iput-boolean v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isApplyAll:Z

    .line 833
    iput-boolean v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isCancelImport:Z

    .line 834
    iput v11, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isOverwrite:I

    .line 836
    invoke-static {}, Lcom/htc/android/footprints/utils/StorageUtil;->hasExternalStorage()Z

    move-result v9

    if-eqz v9, :cond_1

    .line 837
    const/4 v3, 0x0

    .line 839
    .local v3, fi:Ljava/io/FileInputStream;
    :try_start_0
    new-instance v4, Ljava/io/FileInputStream;

    invoke-direct {v4, p1}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_5

    .line 840
    .end local v3           #fi:Ljava/io/FileInputStream;
    .local v4, fi:Ljava/io/FileInputStream;
    :try_start_1
    invoke-static {v4}, Lcom/htc/android/footprints/kml/KMLUtil;->importKMZ(Ljava/io/InputStream;)[Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v8

    .line 841
    .local v8, result:[Lcom/htc/android/footprints/vo/Footprint;
    move-object v0, v8

    .local v0, arr$:[Lcom/htc/android/footprints/vo/Footprint;
    array-length v7, v0

    .local v7, len$:I
    const/4 v5, 0x0

    .local v5, i$:I
    :goto_0
    if-ge v5, v7, :cond_0

    aget-object v2, v0, v5

    .line 842
    .local v2, f:Lcom/htc/android/footprints/vo/Footprint;
    const/4 v9, 0x1

    iput-boolean v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isWaitDialg:Z

    .line 843
    iget-boolean v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isCancelImport:Z

    if-eqz v9, :cond_2

    .line 874
    .end local v2           #f:Lcom/htc/android/footprints/vo/Footprint;
    :cond_0
    new-instance v9, Ljava/lang/Thread;

    new-instance v10, Lcom/htc/android/footprints/utils/PreloadDataRunnable;

    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v11

    invoke-direct {v10, v11, v8}, Lcom/htc/android/footprints/utils/PreloadDataRunnable;-><init>(Landroid/content/Context;[Lcom/htc/android/footprints/vo/Footprint;)V

    invoke-direct {v9, v10}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    invoke-virtual {v9}, Ljava/lang/Thread;->start()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0
    .catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_0

    .line 880
    :try_start_2
    invoke-virtual {v4}, Ljava/io/FileInputStream;->close()V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_3

    .line 888
    .end local v0           #arr$:[Lcom/htc/android/footprints/vo/Footprint;
    .end local v4           #fi:Ljava/io/FileInputStream;
    .end local v5           #i$:I
    .end local v7           #len$:I
    .end local v8           #result:[Lcom/htc/android/footprints/vo/Footprint;
    :cond_1
    :goto_1
    return-void

    .line 845
    .restart local v0       #arr$:[Lcom/htc/android/footprints/vo/Footprint;
    .restart local v2       #f:Lcom/htc/android/footprints/vo/Footprint;
    .restart local v4       #fi:Ljava/io/FileInputStream;
    .restart local v5       #i$:I
    .restart local v7       #len$:I
    .restart local v8       #result:[Lcom/htc/android/footprints/vo/Footprint;
    :cond_2
    :try_start_3
    iget-object v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    invoke-virtual {v9, v2}, Lcom/htc/android/footprints/provider/FootprintManager;->isExistFootprint(Lcom/htc/android/footprints/vo/Footprint;)Z

    move-result v9

    if-nez v9, :cond_4

    .line 846
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v9

    invoke-static {v9}, Lcom/htc/android/footprints/provider/FootprintManager;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v9

    invoke-virtual {v9, v2}, Lcom/htc/android/footprints/provider/FootprintManager;->addFootprint(Lcom/htc/android/footprints/vo/Footprint;)I

    .line 841
    :cond_3
    :goto_2
    add-int/lit8 v5, v5, 0x1

    goto :goto_0

    .line 849
    :cond_4
    iget-boolean v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isApplyAll:Z

    if-eqz v9, :cond_5

    .line 850
    iget v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isOverwrite:I

    if-ne v9, v11, :cond_3

    .line 851
    iget-object v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    invoke-virtual {v9, v2}, Lcom/htc/android/footprints/provider/FootprintManager;->getExistFootprintID(Lcom/htc/android/footprints/vo/Footprint;)J

    move-result-wide v9

    long-to-int v9, v9

    invoke-virtual {v2, v9}, Lcom/htc/android/footprints/vo/Footprint;->setID(I)V

    .line 852
    iget-object v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    invoke-virtual {v9, v2}, Lcom/htc/android/footprints/provider/FootprintManager;->modifyFootprint(Lcom/htc/android/footprints/vo/Footprint;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0
    .catch Ljava/io/FileNotFoundException; {:try_start_3 .. :try_end_3} :catch_0

    goto :goto_2

    .line 876
    .end local v0           #arr$:[Lcom/htc/android/footprints/vo/Footprint;
    .end local v2           #f:Lcom/htc/android/footprints/vo/Footprint;
    .end local v5           #i$:I
    .end local v7           #len$:I
    .end local v8           #result:[Lcom/htc/android/footprints/vo/Footprint;
    :catch_0
    move-exception v9

    move-object v1, v9

    move-object v3, v4

    .line 877
    .end local v4           #fi:Ljava/io/FileInputStream;
    .local v1, e:Ljava/io/FileNotFoundException;
    .restart local v3       #fi:Ljava/io/FileInputStream;
    :goto_3
    :try_start_4
    const-string v9, "ListModeActivity"

    invoke-virtual {v1}, Ljava/io/FileNotFoundException;->getMessage()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    .line 880
    :try_start_5
    invoke-virtual {v3}, Ljava/io/FileInputStream;->close()V
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_1

    goto :goto_1

    .line 881
    :catch_1
    move-exception v1

    .line 882
    .local v1, e:Ljava/io/IOException;
    const-string v9, "ListModeActivity"

    invoke-virtual {v1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v9

    invoke-static {v12, v9, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_1

    .line 856
    .end local v1           #e:Ljava/io/IOException;
    .end local v3           #fi:Ljava/io/FileInputStream;
    .restart local v0       #arr$:[Lcom/htc/android/footprints/vo/Footprint;
    .restart local v2       #f:Lcom/htc/android/footprints/vo/Footprint;
    .restart local v4       #fi:Ljava/io/FileInputStream;
    .restart local v5       #i$:I
    .restart local v7       #len$:I
    .restart local v8       #result:[Lcom/htc/android/footprints/vo/Footprint;
    :cond_5
    :try_start_6
    new-instance v6, Landroid/content/Intent;

    const-string v9, "ImportDialog"

    invoke-direct {v6, v9}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 857
    .local v6, intent_import_dialog:Landroid/content/Intent;
    const-string v9, "import_data"

    invoke-virtual {v6, v9, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 858
    const/16 v9, 0x12c

    invoke-virtual {p0, v6, v9}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->startActivityForResult(Landroid/content/Intent;I)V

    .line 860
    :goto_4
    iget-boolean v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isWaitDialg:Z
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_0
    .catch Ljava/io/FileNotFoundException; {:try_start_6 .. :try_end_6} :catch_0

    if-eqz v9, :cond_6

    .line 862
    const-wide/16 v9, 0x12c

    :try_start_7
    invoke-static {v9, v10}, Ljava/lang/Thread;->sleep(J)V
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_0
    .catch Ljava/lang/InterruptedException; {:try_start_7 .. :try_end_7} :catch_2
    .catch Ljava/io/FileNotFoundException; {:try_start_7 .. :try_end_7} :catch_0

    goto :goto_4

    .line 863
    :catch_2
    move-exception v1

    .line 864
    .local v1, e:Ljava/lang/InterruptedException;
    :try_start_8
    invoke-virtual {v1}, Ljava/lang/InterruptedException;->printStackTrace()V
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_0
    .catch Ljava/io/FileNotFoundException; {:try_start_8 .. :try_end_8} :catch_0

    goto :goto_4

    .line 879
    .end local v0           #arr$:[Lcom/htc/android/footprints/vo/Footprint;
    .end local v1           #e:Ljava/lang/InterruptedException;
    .end local v2           #f:Lcom/htc/android/footprints/vo/Footprint;
    .end local v5           #i$:I
    .end local v6           #intent_import_dialog:Landroid/content/Intent;
    .end local v7           #len$:I
    .end local v8           #result:[Lcom/htc/android/footprints/vo/Footprint;
    :catchall_0
    move-exception v9

    move-object v3, v4

    .line 880
    .end local v4           #fi:Ljava/io/FileInputStream;
    .restart local v3       #fi:Ljava/io/FileInputStream;
    :goto_5
    :try_start_9
    invoke-virtual {v3}, Ljava/io/FileInputStream;->close()V
    :try_end_9
    .catch Ljava/io/IOException; {:try_start_9 .. :try_end_9} :catch_4

    .line 883
    :goto_6
    throw v9

    .line 867
    .end local v3           #fi:Ljava/io/FileInputStream;
    .restart local v0       #arr$:[Lcom/htc/android/footprints/vo/Footprint;
    .restart local v2       #f:Lcom/htc/android/footprints/vo/Footprint;
    .restart local v4       #fi:Ljava/io/FileInputStream;
    .restart local v5       #i$:I
    .restart local v6       #intent_import_dialog:Landroid/content/Intent;
    .restart local v7       #len$:I
    .restart local v8       #result:[Lcom/htc/android/footprints/vo/Footprint;
    :cond_6
    :try_start_a
    iget-boolean v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isCancelImport:Z

    if-nez v9, :cond_0

    .line 868
    iget v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isOverwrite:I

    if-ne v9, v11, :cond_3

    .line 869
    iget-object v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    invoke-virtual {v9, v2}, Lcom/htc/android/footprints/provider/FootprintManager;->getExistFootprintID(Lcom/htc/android/footprints/vo/Footprint;)J

    move-result-wide v9

    long-to-int v9, v9

    invoke-virtual {v2, v9}, Lcom/htc/android/footprints/vo/Footprint;->setID(I)V

    .line 870
    iget-object v9, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    invoke-virtual {v9, v2}, Lcom/htc/android/footprints/provider/FootprintManager;->modifyFootprint(Lcom/htc/android/footprints/vo/Footprint;)V
    :try_end_a
    .catchall {:try_start_a .. :try_end_a} :catchall_0
    .catch Ljava/io/FileNotFoundException; {:try_start_a .. :try_end_a} :catch_0

    goto :goto_2

    .line 881
    .end local v2           #f:Lcom/htc/android/footprints/vo/Footprint;
    .end local v6           #intent_import_dialog:Landroid/content/Intent;
    :catch_3
    move-exception v1

    .line 882
    .local v1, e:Ljava/io/IOException;
    const-string v9, "ListModeActivity"

    invoke-virtual {v1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v9

    invoke-static {v12, v9, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto/16 :goto_1

    .line 881
    .end local v0           #arr$:[Lcom/htc/android/footprints/vo/Footprint;
    .end local v1           #e:Ljava/io/IOException;
    .end local v4           #fi:Ljava/io/FileInputStream;
    .end local v5           #i$:I
    .end local v7           #len$:I
    .end local v8           #result:[Lcom/htc/android/footprints/vo/Footprint;
    .restart local v3       #fi:Ljava/io/FileInputStream;
    :catch_4
    move-exception v1

    .line 882
    .restart local v1       #e:Ljava/io/IOException;
    const-string v10, "ListModeActivity"

    invoke-virtual {v1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v10

    invoke-static {v12, v10, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_6

    .line 879
    .end local v1           #e:Ljava/io/IOException;
    :catchall_1
    move-exception v9

    goto :goto_5

    .line 876
    :catch_5
    move-exception v9

    move-object v1, v9

    goto :goto_3
.end method

.method private bindLocationService()V
    .locals 4

    .prologue
    const/4 v3, 0x1

    .line 1433
    const-string v1, "ListModeActivity"

    const-string v2, "bindLocationService. mBindState = SERVICE_BINDING"

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 1434
    iput v3, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mBindState:I

    .line 1436
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 1437
    .local v0, intent:Landroid/content/Intent;
    const-class v1, Lcom/htc/android/footprints/service/LocationAgentService;

    invoke-virtual {v0, p0, v1}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 1438
    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mConnection:Landroid/content/ServiceConnection;

    invoke-virtual {p0, v0, v1, v3}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->bindService(Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z

    .line 1439
    return-void
.end method

.method private doPickPhotoAction(Ljava/io/File;)V
    .locals 7
    .parameter "data"

    .prologue
    const/16 v6, 0x190

    const/4 v5, 0x1

    .line 1411
    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    .line 1412
    .local v1, intent:Landroid/content/Intent;
    const-string v3, "com.android.camera.action.CROP"

    invoke-virtual {v1, v3}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 1413
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "file://"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {p1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    .line 1414
    .local v2, tempUri:Landroid/net/Uri;
    const-string v3, "image/*"

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->setDataAndType(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/Intent;

    .line 1415
    const-string v3, "crop"

    const-string v4, "true"

    invoke-virtual {v1, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1416
    const-string v3, "aspectX"

    invoke-virtual {v1, v3, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 1417
    const-string v3, "aspectY"

    invoke-virtual {v1, v3, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 1418
    const-string v3, "outputX"

    invoke-virtual {v1, v3, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 1419
    const-string v3, "outputY"

    invoke-virtual {v1, v3, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 1420
    const-string v3, "return-data"

    invoke-virtual {v1, v3, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 1422
    const/4 v3, 0x2

    :try_start_0
    invoke-virtual {p0, v1, v3}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->startActivityForResult(Landroid/content/Intent;I)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 1426
    :goto_0
    return-void

    .line 1423
    :catch_0
    move-exception v0

    .line 1424
    .local v0, e:Landroid/content/ActivityNotFoundException;
    const/4 v3, 0x5

    invoke-virtual {p0, v3}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->showDialog(I)V

    goto :goto_0
.end method

.method private showSearch(Z)V
    .locals 3
    .parameter "isShow"

    .prologue
    const/4 v2, 0x0

    .line 438
    if-eqz p1, :cond_1

    .line 439
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mSearchView:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 440
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mSearchInput:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->requestFocus()Z

    .line 441
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mTitleView:Landroid/widget/TextView;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 448
    :goto_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    invoke-static {}, Lcom/htc/android/footprints/vo/Category;->getAllCategory()Lcom/htc/android/footprints/vo/Category;

    move-result-object v1

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/vo/Category;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 450
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mTitleView:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0a0058

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 455
    :goto_1
    return-void

    .line 443
    :cond_1
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mSearchInput:Landroid/widget/TextView;

    const-string v1, ""

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 444
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mSearchView:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 445
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mTitleView:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0

    .line 453
    :cond_2
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mTitleView:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Category;->mName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1
.end method

.method private unbindLocationService()V
    .locals 2

    .prologue
    .line 1442
    iget v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mBindState:I

    if-eqz v1, :cond_1

    .line 1444
    :try_start_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    if-eqz v1, :cond_0

    .line 1445
    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v1}, Lcom/htc/android/footprints/ILocationAgentService;->shutdownAgent()V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    .line 1450
    :cond_0
    :goto_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mConnection:Landroid/content/ServiceConnection;

    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->unbindService(Landroid/content/ServiceConnection;)V

    .line 1451
    const/4 v1, 0x0

    iput-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    .line 1452
    const/4 v1, 0x0

    iput v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mBindState:I

    .line 1454
    :cond_1
    return-void

    .line 1447
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 1448
    .local v0, e:Landroid/os/RemoteException;
    invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_0
.end method


# virtual methods
.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 8
    .parameter "requestCode"
    .parameter "resultCode"
    .parameter "data"

    .prologue
    const/4 v7, 0x0

    const/4 v6, 0x2

    const/4 v5, 0x0

    .line 963
    const/4 v2, -0x1

    if-eq p2, v2, :cond_1

    .line 1016
    :cond_0
    :goto_0
    return-void

    .line 964
    :cond_1
    if-ne p1, v6, :cond_2

    .line 965
    const-string v2, "data"

    invoke-virtual {p3, v2}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Landroid/graphics/Bitmap;

    .line 966
    .local v0, cropImage:Landroid/graphics/Bitmap;
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    iget-object v3, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->sourceFile:Ljava/io/File;

    iget-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    iget-object v4, v4, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    invoke-static {v2, v3, v0, v4}, Lcom/htc/android/footprints/utils/FootprintUtils;->importJPG(Landroid/content/Context;Ljava/io/File;Landroid/graphics/Bitmap;Ljava/lang/String;)Z

    .line 968
    const/4 v0, 0x0

    .line 969
    iput-object v7, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->sourceFile:Ljava/io/File;

    .line 972
    .end local v0           #cropImage:Landroid/graphics/Bitmap;
    :cond_2
    const/16 v2, 0x12c

    if-ne p1, v2, :cond_3

    .line 973
    const-string v2, "isApplyAll"

    invoke-virtual {p3, v2, v5}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v2

    iput-boolean v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isApplyAll:Z

    .line 974
    const-string v2, "isWaitDialog"

    invoke-virtual {p3, v2, v5}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v2

    iput-boolean v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isWaitDialg:Z

    .line 975
    const-string v2, "isOverwrite"

    const/4 v3, 0x1

    invoke-virtual {p3, v2, v3}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v2

    iput v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isOverwrite:I

    .line 976
    const-string v2, "isCancelImport"

    invoke-virtual {p3, v2, v5}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v2

    iput-boolean v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->isCancelImport:Z

    .line 979
    :cond_3
    const/16 v2, 0xa

    if-ne p1, v2, :cond_0

    .line 981
    if-eqz p3, :cond_0

    .line 982
    iput-object v7, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->sourceFile:Ljava/io/File;

    .line 983
    const-string v2, "output"

    invoke-virtual {p3, v2}, Landroid/content/Intent;->getStringArrayExtra(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    .line 984
    .local v1, output:[Ljava/lang/String;
    if-eqz v1, :cond_0

    array-length v2, v1

    if-eqz v2, :cond_0

    .line 985
    new-instance v2, Ljava/io/File;

    aget-object v3, v1, v5

    invoke-direct {v2, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    iput-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->sourceFile:Ljava/io/File;

    .line 986
    invoke-virtual {p0, v6}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->showDialog(I)V

    .line 987
    new-instance v2, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;

    invoke-direct {v2, p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;-><init>(Lcom/htc/android/footprints/activity/ListModeNewActivity;)V

    invoke-virtual {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->start()V

    goto :goto_0
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 18
    .parameter "savedInstanceState"

    .prologue
    .line 117
    invoke-super/range {p0 .. p1}, Lcom/htc/widget/TabSwitchActivity;->onCreate(Landroid/os/Bundle;)V

    .line 118
    const/4 v11, 0x1

    move-object/from16 v0, p0

    move v1, v11

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->requestWindowFeature(I)Z

    .line 119
    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getWindow()Landroid/view/Window;

    move-result-object v11

    const/4 v12, 0x0

    invoke-virtual {v11, v12}, Landroid/view/Window;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 120
    const v11, 0x7f030027

    move-object/from16 v0, p0

    move v1, v11

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->setContentView(I)V

    .line 122
    invoke-static {}, Lcom/htc/android/footprints/utils/StorageUtil;->isInternalStorageEnough()Z

    move-result v11

    if-nez v11, :cond_0

    .line 123
    const/4 v11, 0x1

    move-object/from16 v0, p0

    move v1, v11

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->showDialog(I)V

    .line 126
    :cond_0
    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getTabHost()Lcom/htc/widget/TabSwitchHost;

    move-result-object v11

    move-object v0, v11

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    .line 127
    invoke-static/range {p0 .. p0}, Lcom/htc/android/footprints/utils/SettingInfo;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/utils/SettingInfo;

    move-result-object v10

    .line 128
    .local v10, setting:Lcom/htc/android/footprints/utils/SettingInfo;
    invoke-virtual {v10}, Lcom/htc/android/footprints/utils/SettingInfo;->isFirstLaunch()Z

    move-result v11

    if-eqz v11, :cond_1

    .line 129
    const/4 v11, 0x0

    move-object/from16 v0, p0

    move v1, v11

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->showDialog(I)V

    .line 130
    const/4 v11, 0x0

    invoke-virtual {v10, v11}, Lcom/htc/android/footprints/utils/SettingInfo;->setFirstLaunch(Z)V

    .line 133
    :cond_1
    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    .line 134
    .local v3, activityIntent:Landroid/content/Intent;
    const-string v11, "pick_footprint"

    const/4 v12, 0x0

    invoke-virtual {v3, v11, v12}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v11

    move v0, v11

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mIsPicker:Z

    .line 136
    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v11

    invoke-static {v11}, Lcom/htc/android/footprints/provider/FootprintManager;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v11

    move-object v0, v11

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/htc/android/footprints/activity/ListModeNewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    .line 137
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    move-object v11, v0

    invoke-virtual {v11}, Lcom/htc/android/footprints/provider/FootprintManager;->getAllCategory()Ljava/util/ArrayList;

    move-result-object v5

    .line 138
    .local v5, cList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/htc/android/footprints/vo/Category;>;"
    const/4 v11, 0x0

    invoke-static {}, Lcom/htc/android/footprints/vo/Category;->getAllCategory()Lcom/htc/android/footprints/vo/Category;

    move-result-object v12

    invoke-virtual {v5, v11, v12}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    .line 140
    invoke-static/range {p0 .. p0}, Lcom/htc/android/footprints/utils/SettingInfo;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/utils/SettingInfo;

    move-result-object v11

    invoke-virtual {v11}, Lcom/htc/android/footprints/utils/SettingInfo;->getSortString()Ljava/lang/String;

    move-result-object v11

    move-object v0, v11

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortBy:Ljava/lang/String;

    .line 142
    invoke-virtual {v5}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v8

    .local v8, i$:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v8}, Ljava/util/Iterator;->hasNext()Z

    move-result v11

    if-eqz v11, :cond_2

    invoke-interface {v8}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/htc/android/footprints/vo/Category;

    .line 143
    .local v4, c:Lcom/htc/android/footprints/vo/Category;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    move-object v11, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    move-object v12, v0

    iget-object v13, v4, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    invoke-virtual {v12, v13}, Lcom/htc/widget/TabSwitchHost;->newTabSpec(Ljava/lang/String;)Lcom/htc/widget/TabSwitchHost$TabSpec;

    move-result-object v12

    iget-object v13, v4, Lcom/htc/android/footprints/vo/Category;->mName:Ljava/lang/String;

    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v14

    iget-object v15, v4, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    invoke-static {v14, v15}, Lcom/htc/android/footprints/utils/FootprintUtils;->getTabCategoryIcon(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v14

    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v15

    move-object v0, v4

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    move-object/from16 v16, v0

    invoke-static/range {v15 .. v16}, Lcom/htc/android/footprints/utils/FootprintUtils;->getInverseCategory(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v15

    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v16

    move-object v0, v4

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    move-object/from16 v17, v0

    invoke-static/range {v16 .. v17}, Lcom/htc/android/footprints/utils/FootprintUtils;->getCategoryOverlayIcon(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v16

    invoke-virtual/range {v12 .. v16}, Lcom/htc/widget/TabSwitchHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)Lcom/htc/widget/TabSwitchHost$TabSpec;

    move-result-object v12

    new-instance v13, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;

    move-object v0, v13

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;-><init>(Lcom/htc/android/footprints/activity/ListModeNewActivity;)V

    invoke-virtual {v12, v13}, Lcom/htc/widget/TabSwitchHost$TabSpec;->setContent(Lcom/htc/widget/TabSwitchHost$TabContentFactory;)Lcom/htc/widget/TabSwitchHost$TabSpec;

    move-result-object v12

    invoke-virtual {v11, v12}, Lcom/htc/widget/TabSwitchHost;->addTab(Lcom/htc/widget/TabSwitchHost$TabSpec;)V

    goto :goto_0

    .line 203
    .end local v4           #c:Lcom/htc/android/footprints/vo/Category;
    :cond_2
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    move-object v11, v0

    const/4 v12, 0x1

    invoke-virtual {v11, v12}, Lcom/htc/widget/TabSwitchHost;->setTabHintEnabled(Z)V

    .line 205
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    move-object v11, v0

    new-instance v12, Lcom/htc/android/footprints/activity/ListModeNewActivity$2;

    move-object v0, v12

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity$2;-><init>(Lcom/htc/android/footprints/activity/ListModeNewActivity;)V

    invoke-virtual {v11, v12}, Lcom/htc/widget/TabSwitchHost;->setOnTabChangedListener(Lcom/htc/widget/TabSwitchHost$OnTabChangeListener;)V

    .line 221
    new-instance v11, Lcom/htc/android/footprints/utils/StorageUtil;

    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v12

    invoke-direct {v11, v12}, Lcom/htc/android/footprints/utils/StorageUtil;-><init>(Landroid/content/Context;)V

    move-object v0, v11

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    .line 222
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    move-object v11, v0

    new-instance v12, Lcom/htc/android/footprints/activity/ListModeNewActivity$3;

    move-object v0, v12

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity$3;-><init>(Lcom/htc/android/footprints/activity/ListModeNewActivity;)V

    invoke-virtual {v11, v12}, Lcom/htc/android/footprints/utils/StorageUtil;->SetOnChangeStorageListerner(Lcom/htc/android/footprints/utils/StorageUtil$OnChangeStorageListener;)V

    .line 248
    const v11, 0x7f0c0077

    move-object/from16 v0, p0

    move v1, v11

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    .end local p1
    check-cast p1, Landroid/widget/TextView;

    move-object/from16 v0, p1

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mTitleView:Landroid/widget/TextView;

    .line 249
    const v11, 0x7f0c0078

    move-object/from16 v0, p0

    move v1, v11

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v11

    move-object v0, v11

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mSearchView:Landroid/view/View;

    .line 250
    const v11, 0x7f0c0079

    move-object/from16 v0, p0

    move v1, v11

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    move-object/from16 v0, p1

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mSearchInput:Landroid/widget/TextView;

    .line 251
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mSearchInput:Landroid/widget/TextView;

    move-object v11, v0

    const/16 v12, 0x70

    invoke-virtual {v11, v12}, Landroid/widget/TextView;->setInputType(I)V

    .line 252
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mSearchInput:Landroid/widget/TextView;

    move-object v11, v0

    new-instance v12, Lcom/htc/android/footprints/activity/ListModeNewActivity$4;

    move-object v0, v12

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity$4;-><init>(Lcom/htc/android/footprints/activity/ListModeNewActivity;)V

    invoke-virtual {v11, v12}, Landroid/widget/TextView;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 265
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mSearchInput:Landroid/widget/TextView;

    move-object v11, v0

    new-instance v12, Lcom/htc/android/footprints/activity/ListModeNewActivity$5;

    move-object v0, v12

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity$5;-><init>(Lcom/htc/android/footprints/activity/ListModeNewActivity;)V

    invoke-virtual {v11, v12}, Landroid/widget/TextView;->setOnFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V

    .line 304
    const-string v11, "SEARCH"

    const/4 v12, 0x0

    invoke-virtual {v3, v11, v12}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v11

    if-eqz v11, :cond_3

    .line 305
    const/4 v11, 0x1

    move-object/from16 v0, p0

    move v1, v11

    invoke-direct {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->showSearch(Z)V

    .line 308
    :cond_3
    const v11, 0x7f0c007a

    move-object/from16 v0, p0

    move v1, v11

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v7

    .line 309
    .local v7, clear:Landroid/view/View;
    new-instance v11, Lcom/htc/android/footprints/activity/ListModeNewActivity$6;

    move-object v0, v11

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity$6;-><init>(Lcom/htc/android/footprints/activity/ListModeNewActivity;)V

    invoke-virtual {v7, v11}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 317
    const-string v11, "CATEGORY"

    invoke-virtual {v3, v11}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v6

    check-cast v6, Lcom/htc/android/footprints/vo/Category;

    .line 318
    .local v6, category:Lcom/htc/android/footprints/vo/Category;
    invoke-virtual {v5, v6}, Ljava/util/ArrayList;->indexOf(Ljava/lang/Object;)I

    move-result v9

    .line 319
    .local v9, index:I
    if-gez v9, :cond_4

    const/4 v11, 0x0

    move v9, v11

    .line 320
    :cond_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    move-object v11, v0

    invoke-virtual {v11, v9}, Lcom/htc/widget/TabSwitchHost;->setCurrentTab(I)V

    .line 321
    if-nez v6, :cond_5

    invoke-static {}, Lcom/htc/android/footprints/vo/Category;->getAllCategory()Lcom/htc/android/footprints/vo/Category;

    move-result-object v11

    :goto_1
    move-object/from16 v0, p0

    move-object v1, v11

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->setCategory(Lcom/htc/android/footprints/vo/Category;)V

    .line 324
    invoke-direct/range {p0 .. p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->bindLocationService()V

    .line 326
    new-instance v11, Lcom/htc/android/footprints/utils/PreloadDataRunnable;

    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v12

    const/4 v13, 0x0

    invoke-direct {v11, v12, v13}, Lcom/htc/android/footprints/utils/PreloadDataRunnable;-><init>(Landroid/content/Context;[Lcom/htc/android/footprints/vo/Footprint;)V

    move-object v0, v11

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/htc/android/footprints/activity/ListModeNewActivity;->preloadRunnable:Lcom/htc/android/footprints/utils/PreloadDataRunnable;

    .line 327
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->preloadRunnable:Lcom/htc/android/footprints/utils/PreloadDataRunnable;

    move-object v11, v0

    new-instance v12, Lcom/htc/android/footprints/activity/ListModeNewActivity$7;

    move-object v0, v12

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity$7;-><init>(Lcom/htc/android/footprints/activity/ListModeNewActivity;)V

    invoke-virtual {v11, v12}, Lcom/htc/android/footprints/utils/PreloadDataRunnable;->setPreloadListener(Lcom/htc/android/footprints/utils/PreloadDataRunnable$PreloadListener;)V

    .line 332
    new-instance v11, Lcom/htc/android/footprints/activity/ListModeNewActivity$8;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->preloadRunnable:Lcom/htc/android/footprints/utils/PreloadDataRunnable;

    move-object v12, v0

    move-object v0, v11

    move-object/from16 v1, p0

    move-object v2, v12

    invoke-direct {v0, v1, v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity$8;-><init>(Lcom/htc/android/footprints/activity/ListModeNewActivity;Ljava/lang/Runnable;)V

    invoke-virtual {v11}, Lcom/htc/android/footprints/activity/ListModeNewActivity$8;->start()V

    .line 333
    const-string v11, "ListModeActivity"

    const-string v12, "Howard - preloadRunnable start"

    invoke-static {v11, v12}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 334
    return-void

    :cond_5
    move-object v11, v6

    .line 321
    goto :goto_1
.end method

.method protected onCreateDialog(I)Landroid/app/Dialog;
    .locals 11
    .parameter "id"

    .prologue
    const v10, 0x7f0200ad

    const v7, 0x1080027

    const/4 v9, 0x0

    const/4 v6, 0x1

    const/4 v8, 0x0

    .line 528
    packed-switch p1, :pswitch_data_0

    .line 651
    :cond_0
    invoke-super {p0, p1}, Lcom/htc/widget/TabSwitchActivity;->onCreateDialog(I)Landroid/app/Dialog;

    move-result-object v4

    :goto_0
    return-object v4

    .line 531
    :pswitch_0
    new-instance v4, Lcom/htc/android/footprints/commonui/HtcDialog;

    invoke-direct {v4, p0}, Lcom/htc/android/footprints/commonui/HtcDialog;-><init>(Landroid/content/Context;)V

    invoke-virtual {v4}, Lcom/htc/android/footprints/commonui/HtcDialog;->getWarningDialog()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v4

    goto :goto_0

    .line 534
    :pswitch_1
    new-instance v4, Lcom/htc/android/footprints/commonui/HtcDialog;

    invoke-direct {v4, p0}, Lcom/htc/android/footprints/commonui/HtcDialog;-><init>(Landroid/content/Context;)V

    invoke-virtual {v4}, Lcom/htc/android/footprints/commonui/HtcDialog;->getNoInternalStroageDialog()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v4

    goto :goto_0

    .line 537
    :pswitch_2
    new-instance v0, Lcom/htc/android/footprints/commonui/HtcDialog$ImportDialog;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/commonui/HtcDialog$ImportDialog;-><init>(Landroid/content/Context;)V

    .line 538
    .local v0, dialog:Lcom/htc/android/footprints/commonui/HtcDialog$ImportDialog;
    const v4, 0x7f0a0071

    invoke-virtual {p0, v4}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v4}, Lcom/htc/android/footprints/commonui/HtcDialog$ImportDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 539
    invoke-virtual {v0, v8}, Lcom/htc/android/footprints/commonui/HtcDialog$ImportDialog;->setCancelable(Z)V

    move-object v4, v0

    .line 540
    goto :goto_0

    .line 543
    .end local v0           #dialog:Lcom/htc/android/footprints/commonui/HtcDialog$ImportDialog;
    :pswitch_3
    const-string v3, "create_time desc"

    .line 544
    .local v3, sortByTime:Ljava/lang/String;
    iget-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortBy:Ljava/lang/String;

    invoke-virtual {v4, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_1

    move v1, v6

    .line 546
    .local v1, itemIdx:I
    :goto_1
    new-instance v4, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v4, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v5, 0x7f0a0062

    invoke-virtual {v4, v5}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v4

    invoke-virtual {v4, v10}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v4

    const v5, 0x7f0a0004

    invoke-virtual {v4, v5, v9}, Lcom/htc/widget/HtcAlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v4

    const v5, 0x7f070001

    new-instance v6, Lcom/htc/android/footprints/activity/ListModeNewActivity$9;

    invoke-direct {v6, p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity$9;-><init>(Lcom/htc/android/footprints/activity/ListModeNewActivity;)V

    invoke-virtual {v4, v5, v1, v6}, Lcom/htc/widget/HtcAlertDialog$Builder;->setSingleChoiceItems(IILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v4

    invoke-virtual {v4}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v4

    goto :goto_0

    .end local v1           #itemIdx:I
    :cond_1
    move v1, v8

    .line 544
    goto :goto_1

    .line 573
    .end local v3           #sortByTime:Ljava/lang/String;
    :pswitch_4
    new-instance v4, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v4, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v5, 0x7f0a00a6

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v4

    invoke-virtual {v4, v7}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v4

    const v5, 0x7f0a004e

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Lcom/htc/widget/HtcAlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v4

    const v5, 0x7f0a0065

    invoke-virtual {v4, v5, v9}, Lcom/htc/widget/HtcAlertDialog$Builder;->setNeutralButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v4

    invoke-virtual {v4}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v4

    goto/16 :goto_0

    .line 581
    :pswitch_5
    new-instance v4, Lcom/htc/android/footprints/commonui/HtcDialog;

    invoke-direct {v4, p0}, Lcom/htc/android/footprints/commonui/HtcDialog;-><init>(Landroid/content/Context;)V

    invoke-virtual {v4}, Lcom/htc/android/footprints/commonui/HtcDialog;->getPhotoPickerNotFoundDialog()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v4

    goto/16 :goto_0

    .line 584
    :pswitch_6
    iget-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->selectedFootprint:Lcom/htc/android/footprints/vo/Footprint;

    if-eqz v4, :cond_2

    .line 585
    new-instance v4, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v4, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v5, 0x7f0a00a5

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v4

    invoke-virtual {v4, v7}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v4

    const v5, 0x7f0a0018

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    new-array v6, v6, [Ljava/lang/Object;

    iget-object v7, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->selectedFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v7, v7, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    aput-object v7, v6, v8

    invoke-static {v5, v6}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Lcom/htc/widget/HtcAlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v4

    const v5, 0x7f0a0065

    new-instance v6, Lcom/htc/android/footprints/activity/ListModeNewActivity$10;

    invoke-direct {v6, p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity$10;-><init>(Lcom/htc/android/footprints/activity/ListModeNewActivity;)V

    invoke-virtual {v4, v5, v6}, Lcom/htc/widget/HtcAlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v4

    const v5, 0x7f0a0004

    invoke-virtual {v4, v5, v9}, Lcom/htc/widget/HtcAlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v4

    invoke-virtual {v4}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v4

    goto/16 :goto_0

    .line 605
    :cond_2
    :pswitch_7
    iget-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->selectedFootprint:Lcom/htc/android/footprints/vo/Footprint;

    if-eqz v4, :cond_0

    .line 606
    const/4 v4, 0x4

    new-array v2, v4, [Ljava/lang/CharSequence;

    const v4, 0x7f0a000f

    invoke-virtual {p0, v4}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v8

    const v4, 0x7f0a0010

    invoke-virtual {p0, v4}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v6

    const/4 v4, 0x2

    const v5, 0x7f0a0021

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v2, v4

    const/4 v4, 0x3

    const v5, 0x7f0a00b4

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v2, v4

    .line 612
    .local v2, items:[Ljava/lang/CharSequence;
    new-instance v4, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v4, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    iget-object v5, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->selectedFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v5, v5, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    invoke-virtual {v4, v5}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v4

    invoke-virtual {v4, v10}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v4

    new-instance v5, Lcom/htc/android/footprints/activity/ListModeNewActivity$11;

    invoke-direct {v5, p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity$11;-><init>(Lcom/htc/android/footprints/activity/ListModeNewActivity;)V

    invoke-virtual {v4, v2, v5}, Lcom/htc/widget/HtcAlertDialog$Builder;->setItems([Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v4

    invoke-virtual {v4}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v4

    goto/16 :goto_0

    .line 528
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_7
    .end packed-switch
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 6
    .parameter "menu"

    .prologue
    const/4 v5, 0x4

    const/4 v2, 0x3

    const/4 v1, 0x2

    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 474
    const v0, 0x7f0a00a9

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v3, v1, v1, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200be

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 477
    const v0, 0x7f0a0024

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v3, v3, v3, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200b7

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 488
    const v0, 0x7f0a0025

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v3, v4, v4, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200e4

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 493
    const v0, 0x7f0a0021

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v3, v2, v2, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200b0

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 497
    const v0, 0x7f0a0035

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v3, v5, v5, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200b3

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 505
    const/4 v0, 0x5

    const/4 v1, 0x5

    const v2, 0x7f0a001c

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-interface {p1, v3, v0, v1, v2}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200ae

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 509
    const/4 v0, 0x6

    const/4 v1, 0x6

    const v2, 0x7f0a009d

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-interface {p1, v3, v0, v1, v2}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200ea

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 514
    return v4
.end method

.method public onDestroy()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 396
    invoke-super {p0}, Lcom/htc/widget/TabSwitchActivity;->onDestroy()V

    .line 398
    invoke-static {}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getInstance()Lcom/htc/android/footprints/utils/camera/FootprintImageManager;

    move-result-object v0

    const-string v1, "ListModeActivity"

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->clearCache(Ljava/lang/String;)V

    .line 400
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    invoke-virtual {v0}, Lcom/htc/widget/TabSwitchHost;->clearAllTabs()V

    .line 401
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    invoke-virtual {v0, v2}, Lcom/htc/widget/TabSwitchHost;->setOnTabChangedListener(Lcom/htc/widget/TabSwitchHost$OnTabChangeListener;)V

    .line 402
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    invoke-virtual {v0}, Lcom/htc/widget/TabSwitchHost;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    invoke-interface {v0}, Landroid/view/ViewParent;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->removeAllViews()V

    .line 403
    iput-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    .line 405
    iput-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->selectedFootprint:Lcom/htc/android/footprints/vo/Footprint;

    .line 406
    const/4 v0, 0x2

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->removeDialog(I)V

    .line 408
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAdapter:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;

    if-eqz v0, :cond_0

    .line 409
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAdapter:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;

    invoke-virtual {v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->getCursor()Landroid/database/Cursor;

    move-result-object v0

    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 412
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v0, v2}, Lcom/htc/widget/HtcListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 413
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v0}, Lcom/htc/widget/HtcListView;->getSelector()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V

    .line 414
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v0, v2}, Lcom/htc/widget/HtcListView;->setOnItemClickListener(Lcom/htc/widget/HtcAdapterView$OnItemClickListener;)V

    .line 415
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v0, v2}, Lcom/htc/widget/HtcListView;->setRecyclerListener(Lcom/htc/widget/HtcAbsListView$RecyclerListener;)V

    .line 416
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v0, v2}, Lcom/htc/widget/HtcListView;->setOnScrollListener(Lcom/htc/widget/HtcAbsListView$OnScrollListener;)V

    .line 417
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v0}, Lcom/htc/widget/HtcListView;->getSelector()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V

    .line 418
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v0}, Lcom/htc/widget/HtcListView;->getBackground()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V

    .line 421
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mSearchView:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V

    .line 422
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mSearchView:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 423
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mTitleView:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getBackground()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V

    .line 424
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mTitleView:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 432
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getLocalActivityManager()Landroid/app/LocalActivityManager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/LocalActivityManager;->removeAllActivities()V

    .line 434
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->unbindLocationService()V

    .line 435
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 3
    .parameter "keyCode"
    .parameter "event"

    .prologue
    .line 692
    const/16 v1, 0x54

    if-ne p1, v1, :cond_0

    .line 694
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/htc/android/footprints/activity/SearchActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 695
    .local v0, intent:Landroid/content/Intent;
    const-string v1, "EXTRA_CATEGORY"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 696
    const-string v1, "EXTRA_SORT_MODE"

    iget v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortMode:I

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 697
    const-string v1, "EXTRA_CACHE_TAG"

    const-string v2, "ListModeActivity"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 698
    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->startActivity(Landroid/content/Intent;)V

    .line 699
    const/4 v1, 0x1

    .line 701
    .end local v0           #intent:Landroid/content/Intent;
    :goto_0
    return v1

    :cond_0
    invoke-super {p0, p1, p2}, Lcom/htc/widget/TabSwitchActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v1

    goto :goto_0
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 20
    .parameter "item"

    .prologue
    .line 706
    invoke-interface/range {p1 .. p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v12

    .line 707
    .local v12, id:I
    packed-switch v12, :pswitch_data_0

    .line 799
    :cond_0
    :goto_0
    const/4 v15, 0x1

    :goto_1
    return v15

    .line 709
    :pswitch_0
    new-instance v13, Landroid/content/Intent;

    const-string v15, "com.htc.android.footprints.activity.WrapShowOnMapActivity"

    invoke-direct {v13, v15}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 711
    .local v13, intent:Landroid/content/Intent;
    const-string v15, "tab_index"

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lcom/htc/widget/TabSwitchHost;->getCurrentTab()I

    move-result v16

    move-object v0, v13

    move-object v1, v15

    move/from16 v2, v16

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 712
    new-instance v5, Ljava/util/ArrayList;

    invoke-direct {v5}, Ljava/util/ArrayList;-><init>()V

    .line 713
    .local v5, fList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/htc/android/footprints/vo/Footprint;>;"
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;

    move-object v15, v0

    invoke-virtual {v15}, Lcom/htc/widget/HtcListView;->getFirstVisiblePosition()I

    move-result v9

    .line 714
    .local v9, first:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;

    move-object v15, v0

    invoke-virtual {v15}, Lcom/htc/widget/HtcListView;->getLastVisiblePosition()I

    move-result v14

    .line 715
    .local v14, last:I
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mIsPicker:Z

    move v15, v0

    if-nez v15, :cond_1

    .line 716
    add-int/lit8 v14, v14, -0x1

    .line 718
    :cond_1
    move v11, v9

    .local v11, i:I
    :goto_2
    if-gt v11, v14, :cond_3

    .line 719
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAdapter:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;

    move-object v15, v0

    invoke-virtual {v15, v11}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->getFootprint(I)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v4

    .line 720
    .local v4, f:Lcom/htc/android/footprints/vo/Footprint;
    iget v15, v4, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    if-lez v15, :cond_2

    .line 721
    invoke-virtual {v5, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 718
    :cond_2
    add-int/lit8 v11, v11, 0x1

    goto :goto_2

    .line 725
    .end local v4           #f:Lcom/htc/android/footprints/vo/Footprint;
    :cond_3
    const-string v15, "display"

    invoke-virtual {v13, v15, v5}, Landroid/content/Intent;->putParcelableArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;

    .line 727
    move-object/from16 v0, p0

    move-object v1, v13

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 730
    .end local v5           #fList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/htc/android/footprints/vo/Footprint;>;"
    .end local v9           #first:I
    .end local v11           #i:I
    .end local v13           #intent:Landroid/content/Intent;
    .end local v14           #last:I
    :pswitch_1
    const/4 v15, 0x3

    move-object/from16 v0, p0

    move v1, v15

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->showDialog(I)V

    goto :goto_0

    .line 733
    :pswitch_2
    const/4 v15, 0x1

    move v0, v15

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/htc/android/footprints/activity/ListModeNewActivity;->cursorMayBeDirty:Z

    .line 734
    new-instance v13, Landroid/content/Intent;

    invoke-direct {v13}, Landroid/content/Intent;-><init>()V

    .line 735
    .restart local v13       #intent:Landroid/content/Intent;
    const-string v15, "com.htc.FilePicker"

    const-string v16, "com.htc.FilePicker.FilePicker"

    move-object v0, v13

    move-object v1, v15

    move-object/from16 v2, v16

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 737
    new-instance v7, Landroid/os/Bundle;

    invoke-direct {v7}, Landroid/os/Bundle;-><init>()V

    .line 738
    .local v7, filePickerInfo:Landroid/os/Bundle;
    const-string v15, "application_name"

    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v16

    const v17, 0x7f0a0003

    invoke-virtual/range {v16 .. v17}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v16

    move-object v0, v7

    move-object v1, v15

    move-object/from16 v2, v16

    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 740
    const-string v15, "title"

    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v16

    const v17, 0x7f0a0035

    invoke-virtual/range {v16 .. v17}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v16

    move-object v0, v7

    move-object v1, v15

    move-object/from16 v2, v16

    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 742
    const/4 v15, 0x3

    new-array v8, v15, [Ljava/lang/String;

    const/4 v15, 0x0

    const-string v16, ".kmz"

    aput-object v16, v8, v15

    const/4 v15, 0x1

    const-string v16, ".kml"

    aput-object v16, v8, v15

    const/4 v15, 0x2

    const-string v16, ".jpg"

    aput-object v16, v8, v15

    .line 744
    .local v8, filter:[Ljava/lang/String;
    const-string v15, "filter"

    invoke-virtual {v7, v15, v8}, Landroid/os/Bundle;->putStringArray(Ljava/lang/String;[Ljava/lang/String;)V

    .line 745
    invoke-virtual {v13, v7}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 748
    const/16 v15, 0xa

    :try_start_0
    move-object/from16 v0, p0

    move-object v1, v13

    move v2, v15

    invoke-virtual {v0, v1, v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->startActivityForResult(Landroid/content/Intent;I)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    .line 749
    :catch_0
    move-exception v3

    .line 750
    .local v3, ex:Landroid/content/ActivityNotFoundException;
    const/4 v15, 0x4

    move-object/from16 v0, p0

    move v1, v15

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->showDialog(I)V

    goto/16 :goto_0

    .line 754
    .end local v3           #ex:Landroid/content/ActivityNotFoundException;
    .end local v7           #filePickerInfo:Landroid/os/Bundle;
    .end local v8           #filter:[Ljava/lang/String;
    .end local v13           #intent:Landroid/content/Intent;
    :pswitch_3
    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v15

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAdapter:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->getCount()I

    move-result v16

    move/from16 v0, v16

    int-to-long v0, v0

    move-wide/from16 v16, v0

    const-wide/32 v18, 0xe7a4

    mul-long v16, v16, v18

    invoke-static/range {v15 .. v17}, Lcom/htc/android/footprints/utils/FootprintUtils;->isStorageEnough(Landroid/content/Context;J)Z

    move-result v15

    if-nez v15, :cond_4

    .line 756
    const/4 v15, 0x1

    goto/16 :goto_1

    .line 758
    :cond_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAdapter:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;

    move-object v15, v0

    invoke-virtual {v15}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->getCount()I

    move-result v15

    if-lez v15, :cond_0

    .line 759
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAdapter:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;

    move-object v15, v0

    invoke-virtual {v15}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->getFootprints()[Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v10

    .line 761
    .local v10, footprints:[Lcom/htc/android/footprints/vo/Footprint;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    move-object v15, v0

    invoke-static {}, Lcom/htc/android/footprints/vo/Category;->getAllCategory()Lcom/htc/android/footprints/vo/Category;

    move-result-object v16

    move-object v0, v15

    move-object/from16 v1, v16

    if-ne v0, v1, :cond_5

    .line 762
    const-string v6, "footprints"

    .line 766
    .local v6, fileName:Ljava/lang/String;
    :goto_3
    move-object/from16 v0, p0

    move-object v1, v6

    move-object v2, v10

    invoke-static {v0, v1, v2}, Lcom/htc/android/footprints/utils/FootprintUtils;->exportKMZ(Landroid/app/Activity;Ljava/lang/String;[Lcom/htc/android/footprints/vo/Footprint;)V

    goto/16 :goto_0

    .line 764
    .end local v6           #fileName:Ljava/lang/String;
    :cond_5
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    move-object v15, v0

    iget-object v6, v15, Lcom/htc/android/footprints/vo/Category;->mName:Ljava/lang/String;

    .restart local v6       #fileName:Ljava/lang/String;
    goto :goto_3

    .line 770
    .end local v6           #fileName:Ljava/lang/String;
    .end local v10           #footprints:[Lcom/htc/android/footprints/vo/Footprint;
    :pswitch_4
    new-instance v13, Landroid/content/Intent;

    const-string v15, "com.htc.android.footprints.activity.SettingActivity"

    invoke-direct {v13, v15}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 772
    .restart local v13       #intent:Landroid/content/Intent;
    move-object/from16 v0, p0

    move-object v1, v13

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 779
    .end local v13           #intent:Landroid/content/Intent;
    :pswitch_5
    const/4 v15, 0x1

    move-object/from16 v0, p0

    move v1, v15

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->startCameraActivity(Z)V

    goto/16 :goto_0

    .line 782
    :pswitch_6
    new-instance v13, Landroid/content/Intent;

    const-class v15, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;

    move-object v0, v13

    move-object/from16 v1, p0

    move-object v2, v15

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 783
    .restart local v13       #intent:Landroid/content/Intent;
    const-string v15, "EXTRA_CATEGORY"

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    move-object/from16 v16, v0

    move-object v0, v13

    move-object v1, v15

    move-object/from16 v2, v16

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 784
    const-string v15, "EXTRA_SORT_MODE"

    move-object/from16 v0, p0

    iget v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortMode:I

    move/from16 v16, v0

    move-object v0, v13

    move-object v1, v15

    move/from16 v2, v16

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 785
    const-string v15, "EXTRA_CACHE_TAG"

    const-string v16, "ListModeActivity"

    move-object v0, v13

    move-object v1, v15

    move-object/from16 v2, v16

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 786
    move-object/from16 v0, p0

    move-object v1, v13

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 789
    .end local v13           #intent:Landroid/content/Intent;
    :pswitch_7
    new-instance v13, Landroid/content/Intent;

    const-class v15, Lcom/htc/android/footprints/activity/SearchActivity;

    move-object v0, v13

    move-object/from16 v1, p0

    move-object v2, v15

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 790
    .restart local v13       #intent:Landroid/content/Intent;
    const-string v15, "EXTRA_CATEGORY"

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    move-object/from16 v16, v0

    move-object v0, v13

    move-object v1, v15

    move-object/from16 v2, v16

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 791
    const-string v15, "EXTRA_SORT_MODE"

    move-object/from16 v0, p0

    iget v0, v0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortMode:I

    move/from16 v16, v0

    move-object v0, v13

    move-object v1, v15

    move/from16 v2, v16

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 792
    const-string v15, "EXTRA_CACHE_TAG"

    const-string v16, "ListModeActivity"

    move-object v0, v13

    move-object v1, v15

    move-object/from16 v2, v16

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 793
    move-object/from16 v0, p0

    move-object v1, v13

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 707
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_5
        :pswitch_3
        :pswitch_2
        :pswitch_6
        :pswitch_4
        :pswitch_7
    .end packed-switch
.end method

.method protected onPause()V
    .locals 1

    .prologue
    .line 378
    invoke-super {p0}, Lcom/htc/widget/TabSwitchActivity;->onPause()V

    .line 380
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    if-eqz v0, :cond_0

    .line 381
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    invoke-virtual {v0}, Lcom/htc/android/footprints/utils/StorageUtil;->closeStorgaeUtil()V

    .line 383
    :cond_0
    return-void
.end method

.method public onPrepareOptionsMenu(Landroid/view/Menu;)Z
    .locals 6
    .parameter "menu"

    .prologue
    const/4 v5, 0x5

    const/4 v4, 0x3

    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 655
    iget-boolean v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mIsPicker:Z

    if-eqz v0, :cond_0

    .line 656
    invoke-interface {p1, v2}, Landroid/view/Menu;->getItem(I)Landroid/view/MenuItem;

    move-result-object v0

    invoke-interface {v0, v2}, Landroid/view/MenuItem;->setEnabled(Z)Landroid/view/MenuItem;

    .line 657
    invoke-interface {p1, v4}, Landroid/view/Menu;->getItem(I)Landroid/view/MenuItem;

    move-result-object v0

    invoke-interface {v0, v2}, Landroid/view/MenuItem;->setEnabled(Z)Landroid/view/MenuItem;

    .line 658
    invoke-interface {p1, v5}, Landroid/view/Menu;->getItem(I)Landroid/view/MenuItem;

    move-result-object v0

    invoke-interface {v0, v2}, Landroid/view/MenuItem;->setEnabled(Z)Landroid/view/MenuItem;

    .line 659
    const/4 v0, 0x6

    invoke-interface {p1, v0}, Landroid/view/Menu;->getItem(I)Landroid/view/MenuItem;

    move-result-object v0

    invoke-interface {v0, v2}, Landroid/view/MenuItem;->setEnabled(Z)Landroid/view/MenuItem;

    .line 660
    const/4 v0, 0x4

    invoke-interface {p1, v0}, Landroid/view/Menu;->getItem(I)Landroid/view/MenuItem;

    move-result-object v0

    invoke-interface {v0, v2}, Landroid/view/MenuItem;->setEnabled(Z)Landroid/view/MenuItem;

    .line 661
    const/4 v0, 0x2

    invoke-interface {p1, v0}, Landroid/view/Menu;->getItem(I)Landroid/view/MenuItem;

    move-result-object v0

    invoke-interface {v0, v2}, Landroid/view/MenuItem;->setEnabled(Z)Landroid/view/MenuItem;

    .line 668
    :goto_0
    invoke-interface {p1, v3}, Landroid/view/Menu;->getItem(I)Landroid/view/MenuItem;

    move-result-object v0

    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAdapter:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_4

    move v1, v3

    :goto_1
    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setEnabled(Z)Landroid/view/MenuItem;

    .line 671
    return v3

    .line 663
    :cond_0
    invoke-interface {p1, v2}, Landroid/view/Menu;->getItem(I)Landroid/view/MenuItem;

    move-result-object v0

    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAdapter:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_1

    move v1, v3

    :goto_2
    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setEnabled(Z)Landroid/view/MenuItem;

    .line 664
    invoke-interface {p1, v4}, Landroid/view/Menu;->getItem(I)Landroid/view/MenuItem;

    move-result-object v0

    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAdapter:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_2

    move v1, v3

    :goto_3
    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setEnabled(Z)Landroid/view/MenuItem;

    .line 665
    invoke-interface {p1, v5}, Landroid/view/Menu;->getItem(I)Landroid/view/MenuItem;

    move-result-object v0

    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAdapter:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_3

    move v1, v3

    :goto_4
    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setEnabled(Z)Landroid/view/MenuItem;

    goto :goto_0

    :cond_1
    move v1, v2

    .line 663
    goto :goto_2

    :cond_2
    move v1, v2

    .line 664
    goto :goto_3

    :cond_3
    move v1, v2

    .line 665
    goto :goto_4

    :cond_4
    move v1, v2

    .line 668
    goto :goto_1
.end method

.method protected onResume()V
    .locals 5

    .prologue
    const-string v4, "DATA"

    .line 338
    invoke-super {p0}, Lcom/htc/widget/TabSwitchActivity;->onResume()V

    .line 340
    invoke-static {}, Lcom/htc/android/footprints/utils/StorageUtil;->hasExternalStorage()Z

    move-result v2

    if-nez v2, :cond_1

    .line 341
    new-instance v1, Landroid/content/Intent;

    const-string v2, "SDCardConfirmDialog"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 342
    .local v1, intent:Landroid/content/Intent;
    invoke-static {}, Lcom/htc/android/footprints/utils/StorageUtil;->isMediaShared()Z

    move-result v2

    if-eqz v2, :cond_4

    .line 343
    const-string v2, "DATA"

    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0a00a3

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v4, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 350
    :goto_0
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    if-eqz v2, :cond_0

    .line 352
    :try_start_0
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v2}, Lcom/htc/android/footprints/ILocationAgentService;->stopTrackingWithoutNotify()V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    .line 358
    :cond_0
    :goto_1
    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->startActivity(Landroid/content/Intent;)V

    .line 361
    .end local v1           #intent:Landroid/content/Intent;
    :cond_1
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    if-eqz v2, :cond_2

    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    invoke-virtual {v2}, Lcom/htc/android/footprints/utils/StorageUtil;->startStorageUtil()V

    .line 364
    :cond_2
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAdapter:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;

    invoke-virtual {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->notifyDataSetChanged()V

    .line 366
    iget-boolean v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->cursorMayBeDirty:Z

    if-eqz v2, :cond_3

    .line 367
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAdapter:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;

    invoke-virtual {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->updateSections()V

    .line 369
    :cond_3
    return-void

    .line 346
    .restart local v1       #intent:Landroid/content/Intent;
    :cond_4
    const-string v2, "DATA"

    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0a0068

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v4, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    goto :goto_0

    .line 353
    :catch_0
    move-exception v2

    move-object v0, v2

    .line 354
    .local v0, e:Landroid/os/RemoteException;
    invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_1
.end method

.method protected onStart()V
    .locals 0

    .prologue
    .line 373
    invoke-super {p0}, Lcom/htc/widget/TabSwitchActivity;->onStart()V

    .line 374
    return-void
.end method

.method protected onStop()V
    .locals 1

    .prologue
    .line 388
    invoke-super {p0}, Lcom/htc/widget/TabSwitchActivity;->onStop()V

    .line 389
    iget-boolean v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mIsPreloadComplete:Z

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->preloadRunnable:Lcom/htc/android/footprints/utils/PreloadDataRunnable;

    if-eqz v0, :cond_0

    .line 390
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->preloadRunnable:Lcom/htc/android/footprints/utils/PreloadDataRunnable;

    invoke-virtual {v0}, Lcom/htc/android/footprints/utils/PreloadDataRunnable;->stopPreloading()V

    .line 392
    :cond_0
    return-void
.end method

.method public setCategory(Lcom/htc/android/footprints/vo/Category;)V
    .locals 4
    .parameter "category"

    .prologue
    const-string v3, ","

    .line 803
    iput-object p1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    .line 806
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mFilter:Landroid/widget/Filter;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p1, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ","

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mSearchInput:Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ","

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortBy:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Filter;->filter(Ljava/lang/CharSequence;)V

    .line 810
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    invoke-static {}, Lcom/htc/android/footprints/vo/Category;->getAllCategory()Lcom/htc/android/footprints/vo/Category;

    move-result-object v1

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/vo/Category;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 812
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mTitleView:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0a0058

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 817
    :goto_0
    return-void

    .line 815
    :cond_1
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mTitleView:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Category;->mName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method startCameraActivity(Z)V
    .locals 4
    .parameter "withCategory"

    .prologue
    .line 675
    const v1, 0x7f0a00ab

    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-static {p0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    .line 678
    const/4 v1, 0x1

    iput-boolean v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->cursorMayBeDirty:Z

    .line 679
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 681
    .local v0, createFootprints:Landroid/content/Intent;
    if-eqz p1, :cond_0

    .line 683
    const-string v1, "CATEGORY"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 685
    const-string v1, "ListModeActivity"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Selected category: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    iget-object v3, v3, Lcom/htc/android/footprints/vo/Category;->mName:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 688
    :cond_0
    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->startActivity(Landroid/content/Intent;)V

    .line 689
    return-void
.end method
